<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="燕归来兮个人读书笔记">
    <meta name="keywords" content="技术,读书,笔记,源码">
    <title>燕归来兮 | 读书笔记</title>
    <#include "common/link.ftl"/>
    <style>
        .box:hover {
            box-shadow: 0 1em 1em -0.5em rgb(0 0 0 / 10%), 0 0 0 8px rgb(0 0 0 / 2%);
        }

        .bookName {
            text-align: -webkit-center;
            text-align: center;
            margin-top: 11px;
            color: black;
        }


        @media screen and (max-width: 768px) {
            .bookContent {
                width: 100%;
            }
        }


        @media screen and (min-width: 768px) {
            .bookContent {
                width: 80%;
            }
        }
    </style>
</head>
<body>

<section class="hero  is-medium is_blue">
    <!-- Hero head: will stick at the top -->
    <div class="hero-head">
        <#include "common/nav.ftl"/>
    </div>

    <!-- Hero content: will be in the middle -->
    <div class="hero-body">
        <div class="container has-text-centered">
            <p class="title is-size-1 mb-6">
                读书笔记
            </p>
            <p class="subtitle">
                凡心之所向,素履以往,生如逆旅,一苇以航
            </p>
        </div>
    </div>

    <!-- Hero footer: will stick at the bottom -->
    <div class="hero-foot">
    </div>
</section>


<#-- 文章列表 -->
<div class="is-flex is-justify-content-center mt-4">
    <div class="columns bookContent">
        <div class="is-flex is-flex-wrap-wrap is-justify-content-center">
            <#list  books as book>
                <div class="box m-4 is-flex is-justify-content-center is-flex-direction-column"
                     <#if book.hasChapter>onclick="window.location.href = '/books/${book.bookKey}/chapter'"</#if>>
                    <img src="${book.coverUrl}" alt='${book.bookName}' width="200"
                         <#if !book.hasChapter>style="filter: grayscale(100)"</#if>/>
                    <h1 class="bookName">《${book.bookName}》</h1>
                </div>
            </#list>
        </div>
    </div>
</div>

<#-- 尾部 -->
<#include "common/footer.ftl"/>

</body>
</html>